package com.huashi.dealer.modular.business.balance.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;

/**
 * @ClassName BalanceBo
 * @Description 余额请求参数
 * @Author 谭陈强
 * @Date 2025/8/15 13:34
 */
@Data
@Schema(description = "余额请求参数")
public class BalanceBo {
    @Schema(description = "余额类型：10-基本账户，20-返利账户，30-核销账户", example = "10", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "类型不能为空")
    private Integer type;

    @Schema(description = "场景类型", example = "1", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Integer scene;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "开始时间", example = "2025-08-01", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private LocalDate startTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "结束时间", example = "2025-08-15", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private LocalDate endTime;
    
    @Schema(description = "用户昵称", example = "张三", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String nickName;
}